package com.topsoft.email.service.rabbitmq;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.stereotype.Component;

@Component
public class MQReceiverListenter2 implements MessageListener {

	
	@Override
    public void onMessage(Message msg) {
        try{
            System.out.println("2222222222222222222222222222222222"+new String(msg.getBody()));
            System.out.print("------------------------------------");
        }catch(Exception e){
            e.printStackTrace();
        }
    }

}